//
//  YDDUser.h
//  YaDiuDiu
//
//  Created by Zephyr on 2017/9/19.
//  Copyright © 2017年 jy. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, YDDMerchantType) {
    YDDMerchantTypeDryClean = 1,
    YDDMerchantTypeNewHouse,
    YDDMerchantTypeRentHouse,
    YDDMerchantTypeCoolie,
    YDDMerchantTypeCreditLesson,
    YDDMerchantTypeExpress,
    YDDMerchantTypeDomesticService,
    YDDMerchantTypeOpenLock,
    YDDMerchantTypeResume,
    YDDMerchantTypeFruit,
    YDDMerchantTypeBuyCar,
    YDDMerchantTypeCleanCar
};

typedef NS_ENUM(NSInteger, YDDMerchantCertifyType) {
    YDDMerchantCertifyTypeNoCertify = 1,
    YDDMerchantCertifyTypeChecking,
    YDDMerchantCertifyTypePass,
    YDDMerchantCertifyTypeReject,
    YDDMerchantCertifyTypeRecycle
};

@interface YDDUser : NSObject

/**
 用户ID
 */
@property (copy, nonatomic, readonly) NSString *ID;

/**
 用户头像
 */
@property (copy, nonatomic, readonly) NSString *avatar;

/**
 收货地址数
 */
@property (copy, nonatomic, readonly) NSString *addresscount;

/**
 余额
 */
@property (copy, nonatomic, readonly) NSString *balance;

/**
 银行卡张数
 */
@property (copy, nonatomic, readonly) NSString *bankNumber;

/**
 推荐人邀请码
 */
@property (copy, nonatomic, readonly) NSString *beinvitedcode;

/**
 信用等级
 */
@property (copy, nonatomic, readonly) NSString *creditrating;

/**
 授信积分
 */
@property (copy, nonatomic, readonly) NSString *creditscore;

/**
 现居住市
 */
@property (copy, nonatomic, readonly) NSString *currentcity;

/**
 现居住区/县
 */
@property (copy, nonatomic, readonly) NSString *currentdist;

/**
 现居住省
 */
@property (copy, nonatomic, readonly) NSString *currentprovince;

/**
 现居住详细地址
 */
@property (copy, nonatomic, readonly) NSString *currentsuite;

/**
 行驶证反面
 */
@property (copy, nonatomic, readonly) NSString *driveback;

/**
 驾驶证正面
 */
@property (copy, nonatomic, readonly) NSString *drivinglicense;

/**
 驾驶证反面
 */
@property (copy, nonatomic, readonly) NSString *drivinglicenseback;

/**
 行驶证正面
 */
@property (copy, nonatomic, readonly) NSString *drivingpermitface;

/**
 学历
 */
@property (copy, nonatomic, readonly) NSString *education;

/**
 身份证正面
 */
@property (copy, nonatomic, readonly) NSString *frontofidcard;

/**
 身份证反面
 */
@property (copy, nonatomic, readonly) NSString *idcardnegative;

/**
 身份证号
 */
@property (copy, nonatomic, readonly) NSString *idcardno;

/**
 我的邀请码
 */
@property (copy, nonatomic, readonly) NSString *invitecode;

/**
 学历认证 2为已经认证，3为未认证
 */
@property (assign, nonatomic, readonly) BOOL isEducationCerti;

/**
 商家类型：1为干洗、2为新房、3为租房、4为苦力、5为信贷教程、6为快递、7为家政、8为开锁、9为简历、10为蔬果、11为买车、12为洗车
 */
@property (assign, nonatomic, readonly) YDDMerchantType merchantType;

/**
 昵称
 */
@property (copy, nonatomic, readonly) NSString *nickname;

/**
 密码
 */
@property (copy, nonatomic, readonly) NSString *password;

/**
 电话号码
 */
@property (copy, nonatomic, readonly) NSString *phone;

/**
 积分
 */
@property (copy, nonatomic, readonly) NSString *points;

/**
 真名
 */
@property (copy, nonatomic, readonly) NSString *realname;

/**
 红包余额
 */
@property (copy, nonatomic, readonly) NSString *redenvelope;

/**
 1 代表没申请商家 2审核中 3审核通过 4驳回 5回收
 */
@property (assign, nonatomic, readonly) YDDMerchantCertifyType merchantCertifyType;

+ (instancetype)userWithDict:(NSDictionary *)dict;

@end
